package com.qf.agro.service;

import com.qf.agro.common.ResultInfo;
import com.qf.agro.pojo.SysRole;

import java.util.List;

/**
 * @author 10202
 * @version V1.0
 * @Project smart-agriculture-parent
 * @Package com.qf.agro.service
 * @Date 2023/5/23 11:42
 */
public interface SysRoleService {

    ResultInfo getRoleList();

    ResultInfo selectRoleIdByUserId(Long userId);

    ResultInfo getPage(Long page, Long pageSize, String name);

    ResultInfo updateRole(String userId, List<String> roleIds);

    ResultInfo deleteRoleByUserId(String userId);

    ResultInfo insertRoleByUserId(String userId,List<String> roleIds);

    ResultInfo insertRole(SysRole sysRole);

    ResultInfo updateRoleMessage(SysRole sysRole);

    ResultInfo deleteRoleById(String id);
}
